package kr.re.kitri.card;

import java.util.ArrayList;
import java.util.List;

public class CardCase {
	public static final int numOfCard = Card.stack.length*Card.deck.length;
	private List card;
	
	public void init() {
		card = new ArrayList();
	}
	
	public CardCase(){
		init();
		fulling();
	}

	public void fulling() {
		int count=0;
		while(true){
			Card c = new Card();
			if (!card.contains(c)) {
				card.add(c);
				count++;
//				card[]=c;				
			}
			if (count==numOfCard) {
				break;
			}
		}
	}

//	public boolean isSame(Card[] card2, Card c) {
//		boolean isS = false;
//		for (int i = 0; i < card2.length; i++) {
//			if (card2[i]!=null && card2[i].equals(c)) {
//				isS = true;
//				break;
//			}
//		}
//		return isS;
//	}
	
	public List getAllCards(){
		return card;
	}
	
}



